using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using ACM.cmsarea08;
using ACM.cmsarea08.Controls;
using ACM.cmsarea08.Administration;


namespace ACM.cmsarea08.Administration.Core {
	public partial class prova :  BaseEditPage {
		
		override protected void OnInit(EventArgs e)
		{
			InitializeComponent();
			base.OnInit(e);
		}
		protected System.Web.UI.WebControls.Button invio;
		protected System.Web.UI.WebControls.TextBox query;
		private void InitializeComponent()
		{
			
			invio.Click += new System.EventHandler(this.showresult);
			this.Load += new System.EventHandler(this.Page_Load);
		}
	
		private void Page_Load(object o , EventArgs e) {
			if(!Page.IsPostBack) {
				
			}
		}
		private void showresult(object o, EventArgs e){
			ACM.cmsarea08.DBManager.DBClass dclass = new DBClass();
			FormDataAdapter fda = new FormDataAdapter();
			if(query.Text=="")
				return;
			DataSet ds = dclass.Standard_DS(query.Text);
			if(ds==null || ds.Tables.Count==0)
				return;
			object dato = ds.Tables[0].Rows[0][0];
			/*
			 * Response.Write("dato.ToString() --->  "+dato.ToString()+"<hr>");
			Response.Write("((byte[])dato).Length --->  "+((byte[])dato).Length.ToString()+"<hr>");
			Response.Write("Convert.ToBase64String((byte[])dato) --->  "+Convert.ToBase64String((byte[])dato)+"<hr>");
			Response.Write("System.Text.Encoding.UTF8.GetString((byte[])dato) --->  "+System.Text.Encoding.UTF8.GetString((byte[])dato)+"<hr>");
			Response.Write("fda.Decompress(Convert.ToBase64String((byte[])dato)) --->  "+fda.Decompress(Convert.ToBase64String((byte[])dato))+"<hr>");
			Response.Write("fda.Decompress(System.Text.Encoding.UTF8.GetString((byte[])dato)) --->  "+fda.Decompress(System.Text.Encoding.UTF8.GetString((byte[])dato))+"<hr>");
			*/
		}
		
		
		
	}
	
}
